/*
 *  $Id: KeyboardEvent.cs 1117 2010-09-26 17:31:46Z thenn.erannor $
 *  This file is a part of Ragima CCG.
 *  (C) 2008-2009 Ragima development group.
 *
 *  Licensed under the terms of the GNU GPL License version 2.
 *
 */

using System;

using AgateLib.InputLib;

namespace Ragima.UI {
    public struct KeyboardEvent {
        public readonly KeyCode KeyCode;
        public readonly string KeyString;
        public readonly KeyModifiers KeyModifiers;

        public KeyboardEvent(InputEventArgs e) {
            KeyCode = e.KeyCode;
            KeyString = e.KeyString;
            KeyModifiers = new KeyModifiers(Keyboard.Keys[KeyCode.Alt], Keyboard.Keys[KeyCode.Control], Keyboard.Keys[KeyCode.Shift]);
        }
    }
}

